import { useUserStore } from '@/store/modules/user';

export default {
  mounted(el, binding) {
    const userStore = useUserStore();
    if (
      !userStore.hasPermission(
        binding.value,
        'project',
        false,
        userStore.currentProjectId
      )
    ) {
      el.parentNode?.removeChild(el);
    }
  },
};
